package com.ljs.myspringboot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Customer {
    private int cid;
    private String cname;
    private String password;
    private int state;
    private List<Goods> goodsList;

    @Override
    public String toString() {
        return "Customer{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", customerList=" + goodsList +
                '}';
    }

    public Customer(int cid, String cname) {
        this.cid = cid;
        this.cname = cname;
    }
}
